package com.holystone.orca.sys.mybatis.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "sys_operation_log")
public class SysOperationLog {
    /**
     * ��־ID
     */
    @Id
    @Column(name = "log_id")
    private Integer logId;

    /**
     * ��¼��
     */
    @Column(name = "person_code")
    private String personCode;

    /**
     * ����
     */
    private String operation;

    /**
     * �ػ�ID
     */
    @Column(name = "session_id")
    private String sessionId;

    /**
     * ����ʱ��
     */
    @Column(name = "operation_date")
    private Date operationDate;

    /**
     * ��ϸ��Ϣ
     */
    private String information;
    
    @Column(name = "request_ip")
    private String requestIp;
    

    public String getRequestIp() {
		return requestIp;
	}

	public void setRequestIp(String requestIp) {
		this.requestIp = requestIp;
	}

	/**
     * ��ȡ��־ID
     *
     * @return log_id - ��־ID
     */
    public Integer getLogId() {
        return logId;
    }

    /**
     * ������־ID
     *
     * @param logId ��־ID
     */
    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    /**
     * ��ȡ��¼��
     *
     * @return person_code - ��¼��
     */
    public String getPersonCode() {
        return personCode;
    }

    /**
     * ���õ�¼��
     *
     * @param personCode ��¼��
     */
    public void setPersonCode(String personCode) {
        this.personCode = personCode;
    }

    /**
     * ��ȡ����
     *
     * @return operation - ����
     */
    public String getOperation() {
        return operation;
    }

    /**
     * ���ò���
     *
     * @param operation ����
     */
    public void setOperation(String operation) {
        this.operation = operation;
    }

    /**
     * ��ȡ�ػ�ID
     *
     * @return session_id - �ػ�ID
     */
    public String getSessionId() {
        return sessionId;
    }

    /**
     * ���ûػ�ID
     *
     * @param sessionId �ػ�ID
     */
    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    /**
     * ��ȡ����ʱ��
     *
     * @return operation_date - ����ʱ��
     */
    public String getOperationDate() {
    	SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd  HH:mm:ss");
        return sdf.format(operationDate);
    }

    /**
     * ���ò���ʱ��
     *
     * @param operationDate ����ʱ��
     */
    public void setOperationDate(Date operationDate) {
        this.operationDate = operationDate;
    }

    /**
     * ��ȡ��ϸ��Ϣ
     *
     * @return information - ��ϸ��Ϣ
     */
    public String getInformation() {
        return information;
    }

    /**
     * ������ϸ��Ϣ
     *
     * @param information ��ϸ��Ϣ
     */
    public void setInformation(String information) {
        this.information = information;
    }
}